(* This is a sample module that shows how to combine Macintosh and Oberon code. Execution of the command Import.Text will open a file selector box. If you select a text file, it will be opened in a new TextViewer.
Compile the toolbox files if necessary:
Compiler.Compile
MacMemory.Mod/s MacImaging.Mod/s
MacToolbox.Mod/s MacFiles.Mod/s
MacProcesses.Mod/s MacOSUtils.Mod/s
MacMoreToolbox.Mod/s MacText.Mod/s
MacIAC.Mod/s ~
Then, compile this module:
Compiler.Compile Import.Mod ~
Now, execute the new command:
Import.Text
The corresponding export procedure is left as an exercise to the reader. *)